home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / Asap / ASAP / DeviceNode_.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-08  |  1.4 KB  |  38 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ADeviceNode wrapper class                                                 *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_DeviceNode_H
  12. #define ASAP_DeviceNode_H
  13.  
  14. extern "C"
  15. {
  16.  #include <DOS/FileHandler.h>
  17.  #include <Proto/Expansion.h>
  18. }
  19.  
  20. class ADeviceNode : public DeviceNode
  21. {
  22.  public:
  23.  inline BOOL AddDosNode(long bootPri, unsigned long flags);
  24.  inline static ADeviceNode * MakeDosNode(APTR parmPacket);
  25. };
  26. //----------------------------------------------------------------------------
  27. BOOL ADeviceNode::AddDosNode (long bootPri, unsigned long flags)
  28. {
  29.  return ::AddDosNode(bootPri, flags, this);
  30. }
  31. //----------------------------------------------------------------------------
  32. ADeviceNode * ADeviceNode::MakeDosNode (APTR parmPacket)
  33. {
  34.  return (ADeviceNode *) ::MakeDosNode(parmPacket);
  35. }
  36.  
  37. #endif
  38.